//
//  NSString+Helper.h
//  MFWSdk
//
//  Created by xiaofeng on 14-9-4.
//  Copyright (c) 2014年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Helper)
- (NSString*)trim;

- (NSString *)removeAllSpace;

- (NSMutableAttributedString*)defaultLineSpaceAndWordSpace;

- (NSMutableAttributedString*)lineSpace:(CGFloat)lineSpace;

- (NSMutableAttributedString*)wordSpace:(CGFloat)wordSpace lineSpace:(CGFloat)lineSpace;

- (NSMutableAttributedString*)lineSpace:(CGFloat)lineSpace textAlignment:(NSTextAlignment)alignment;

- (CGFloat)stringHeightLineSpace:(CGFloat)lineSpace wordSpace:(CGFloat)wordSapce fontSzie:(CGFloat)fontSize width:(CGFloat)width;

- (CGFloat)stringHeightLineSpace:(CGFloat)lineSpace  fontSzie:(CGFloat)fontSize width:(CGFloat)width;

- (NSString *)getDateStringWithTime;

- (CGFloat)stringWidthFontSize:(CGFloat)fontSize height:(CGFloat)height;

- (NSDictionary*)dictionaryFromQueryUsingEncoding:(NSStringEncoding)encoding;

- (NSUInteger)numberOfLines;

- (NSMutableAttributedString*)lineSpace:(CGFloat)lineSpace andLineBreakMode:(NSLineBreakMode)lineModel;
@end
